package model

import (
	"github.com/dgrijalva/jwt-go"
	"gorm.io/gorm"
	"time"
)

type Software struct {
	gorm.Model
	Name       string
	ImagePath  string
	FilePath   string
	Info       string // 简介
	BucketName string
	Content    string `gorm:"type:text"` // 破解内容
}

type MyClaims struct {
	Name string
	jwt.StandardClaims
}

type Auditor struct {
	gorm.Model
	Name      string
	ShortID   []byte
	PublicKey []byte
}

type ChallengeRecord struct {
	gorm.Model
	Name      string
	Challenge string
}

type FeedBack struct {
	gorm.Model
	IP          string //
	Content     string `gorm:"type:text"`
	AuditorName string
	AuditTime   time.Time
	Status      bool
}
